package com.kang.bean;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * @program: service
 * @description: 消息列表
 * @author: K.faWu
 * @create: 2022-04-12 17:41
 **/

@Data
public class News implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String creationTime;
    private String text;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fromUser;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long toUser;
}
